package demo

import scala.collection.mutable

object State {
  def main(args: Array[String]): Unit = {
    val states: mutable.Map[String, String] = collection.mutable.Map("AK" -> "Alaska")
    states += ("AL" -> "Alabama")
    states += ("AL" -> "Alabama2")
    states("AK") += " A Really Big State"
    println(states.mkString("\n"))
    val all: collection.mutable.Map[String, mutable.Map[String, Int]] = collection.mutable.Map()
    //    val cnt: mutable.Map[String, Int] = collection.mutable.Map("A" -> 1)
    all += ("fa" -> collection.mutable.Map("A" -> 1))
    all("fa")("A") += 1
    println(all("fa")("A"))
  }
}
